<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://localhost" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://localhost" elementFormDefault="qualified">
	<xs:element name="report">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Raportare pentru medicii de familie</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="physician">
					<xs:annotation>
						<xs:documentation xml:lang="ro">Date de identificare medic de familie</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="capita">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Mişcări în lista de înscrişi</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="enlisted" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Date de identificare persoana inscrisă</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="operations" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista mişcărilor persoanei inscrise</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="operation">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Mişcare persoana inscrisă</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="moveType" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Timp mişcare</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:short">
																					<xs:enumeration value="1">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">INTRARE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="2">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">IEŞIRE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="3">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">MODIFICARE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="date" type="xs:date" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data mişcării</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="event" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul evenimentului (valoare din nomenclatorul de evenimente)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="categories" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de categorii asociate de asigurat ale pacientului înscris</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="category" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Categoria pacientului</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="moveType" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Tip mişcare</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:short">
																					<xs:enumeration value="1">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">INTRARE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="2">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">IEŞIRE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="3">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">MODFICARE</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul categoriei de asigurat (valoare din nomenclatorul de categorii)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea acordării categoriei (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="allergies" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de alergii ale pacientului înscris</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="allergy" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Alergie</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul alergiei din nomenclatorul de boli</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea alergiei (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="states" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de stărilor de asigurare ale persoanei (valori folosite la reţete)</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="state" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Starea de asigurare a persoanei</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul stării de asigurat (valoarea codului din nomenclatorul de stări)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea asocierii stării de asigurat (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="NHPs" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista programelor naţionale de sănătate în care este înscris pacientul</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="NHP" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Program naţional de sănătate</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul programului naţional de sănătate (valoarea codului din nomenclatorul de programe naţionale de sănătate)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea înscrierii în PNS (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="citizenships" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de cetăţenii a pacientului.</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="base" minOccurs="0">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Cetăţenia principală (de bază)</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul cetăţeniei (valoarea codului din nomenclatorul de cetăţenii)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea cetăţeniei (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
																<xs:element name="supl" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Cetăţenii alternative (suplimentare)</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul cetăţeniei (valoarea codului din nomenclatorul de cetăţenii)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea cetăţeniei (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="IDCards" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de acte de identitate a pacientului</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="IDCard" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Actul de identitate cu care se legitimează pacientul.</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul tipului de carte de identitate (valaore din nomenclatorul de tipuri cărţi de identitate)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="serialCode" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Seria documentului de identitate</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="serialNo" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Numărul documentului de identitate</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="issuedBy" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Unitatea emitentă (aşa cum este ea înscrisă pe cartea de identitate)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="100"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea cărţii de identitate (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="chronics" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista de boli cronice ale pacientului</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="chronic" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Boală cronică</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul bolii cronice (valoarea codului din nomenclatorul de categorii de boală)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea diagnosticării bolii cronice (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="physicianStencil" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Parafa medicului care a diagnosticat boala</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="10" />
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="relatives" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista rudelor care au legături de coasigurare cu pacientul</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="relative" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Datele de identificare ale rudei</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="jDoc" type="jDocType" minOccurs="0">
																				<xs:annotation>
																					<xs:documentation xml:lang="ro">Document justificativ (vezi Tip document justificativ)</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																		<xs:attribute name="AppID" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="code" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul gradului de rudeneie (valoare din nomenclatorul de grade de rudenie)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="pid" type="pidType" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">CNP-ul rudei</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="firstName" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Prenumele rudei</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="100"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="lastName" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Numele de familie al rudei</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="100"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="isCoInsured" type="xs:boolean" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Indică dacă ruda este coasigurat sau nu</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="motivation" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Motivarea introducerii rudei (text liber)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="50"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="validFrom" type="xs:date" use="required">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="validTo" type="xs:date" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="AppID" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="pid" type="pidType" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">CNP-ul pacientului</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="firstName" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Prenumele pacientului</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="100"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="lastName" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Numele de familie al pacientului</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="100"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="birthDate" type="xs:date" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Data naşterii</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="deceaseDate" type="xs:date" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Data decesului</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="placeOfBirth" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Locul naşterii (codul localităţii din nomenclatorul de localităţi)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="gender" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Sexul pacientului</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="1">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">MASCULIN</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="2">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">FEMININ</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="3">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">BISEXUAL</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="4">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">NECUNOSCUT</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="unitOfPayment" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Casa de asigurări a pacientului (Valoarea codului din nomenclatorul de case de asigurare)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="bloodType" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Grupa sanguină</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="2"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="bloodRH" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">RH sanguin</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="organsDonation" type="xs:boolean" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Specifică dacă pacientul a consimţit să fie donator de organe</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="isDiplomat" type="xs:boolean" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Specifică dacă pacientul beneficiază de drepturi speciale de diplomat</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="residence" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Ţara de reşedinţă (Valoarea codului din nomenclatorul de ţări)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="address" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Adresa pacientului (text liber)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="200"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="services">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Lista serviciilor efectuate pacientului în intervalul de raprotare</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="service" type="serviceType" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Serviciu general</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="immunization" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Serviciu de imunizare</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:complexContent>
													<xs:extension base="serviceType">
														<xs:attribute name="school" type="xs:boolean" use="required">
															<xs:annotation>
																<xs:documentation xml:lang="ro">Specifică dacă imunizarea a fost efectuată în scoli prin program special</xs:documentation>
															</xs:annotation>
														</xs:attribute>
														<xs:attribute name="catagraph" type="xs:boolean" use="required">
															<xs:annotation>
																<xs:documentation xml:lang="ro">Specifică dacă imunizarea nu a fost efectuată propriu-zis şi avem de a face cu o catagrafiere nematerializată</xs:documentation>
															</xs:annotation>
														</xs:attribute>
													</xs:extension>
												</xs:complexContent>
											</xs:complexType>
										</xs:element>
										<xs:element name="pregnancy" type="serviceType" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Serviciu pentru gravide</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="permanence" type="serviceType" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Serviciu prestat în centre de permanenţă</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="prescriptions">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Lista reţetelor eliberate în intervalul de raportare</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="prescription" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Reţetă prescisă</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="drugs">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Lista medicamentelor de pe reţetă</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:sequence>
																<xs:element name="item" minOccurs="0" maxOccurs="unbounded">
																	<xs:annotation>
																		<xs:documentation xml:lang="ro">Element de detaliu al listei de medicamente de pe reţetă</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:attribute name="AppID" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Id-ul de identificare al medicamentului compensat prescris în cadrul unei reţete.</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="crtNo" type="xs:unsignedInt" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Numărul de ordine al întegistrării aşa cu apare pe reţetă</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="copmtListTypeCode" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul listei de compensare (Valaore din nomenclatorul de tipuri liste de compensare)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="copmtListTypePrc" type="xs:decimal" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Procentul de compensare aferent listei de mai sus</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																		<xs:attribute name="diseaseCode" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul de boală pentru care s-a prescris medicamentul</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="diseaseCategCode" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul categoriei de boală</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="diagType" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Tipul de diagnostic</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:enumeration value="0">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">ACUT</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="1">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">SUBACUT</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																					<xs:enumeration value="2">
																						<xs:annotation>
																							<xs:documentation xml:lang="ro">CRONIC</xs:documentation>
																						</xs:annotation>
																					</xs:enumeration>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="drugCode" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul medicamentului (valoare din nomenclatorul de medicamente)</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="activeSubstCode" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul substanţei active</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="100"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="repPhForm" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul formei de ambalare</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="100"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="repConc" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Codul concentaţiei</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="30"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="dose" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Dozaj</xs:documentation>
																			</xs:annotation>
																			<xs:simpleType>
																				<xs:restriction base="xs:string">
																					<xs:maxLength value="20"/>
																				</xs:restriction>
																			</xs:simpleType>
																		</xs:attribute>
																		<xs:attribute name="quantity" type="xs:decimal" use="optional">
																			<xs:annotation>
																				<xs:documentation xml:lang="ro">Cantiatea de medicament prescrisă</xs:documentation>
																			</xs:annotation>
																		</xs:attribute>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</xs:complexType>
													</xs:element>
													<xs:element name="test" minOccurs="0" maxOccurs="1">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Teste medicale prescrise pe reţetă</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:attribute name="AppID" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Identificator unic al înregistrării</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:maxLength value="20" />
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="testName" use="optional">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Denumire test medical</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:maxLength value="100" />
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="monthsNo" type="xs:int" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Număr de luni</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="patientType" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Tip pacient</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:enumeration value="COPIL"/>
																		<xs:enumeration value="ADULT"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="pid" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">CNP pacient</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="serialCode" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Serie reţetă</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="10" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="serialNo" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Număr reţetă</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="prescDate" type="xs:date" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Data prescrierii</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="prescriptionType" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Tipul reţetei (valoare codului din nomenclatorul de tipuri de reţete)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="patientType" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Tipul de pacient (valoarea codului din nomenclatorul de stări de asigurat)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="diagnostic" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Diagnosticul (text liber)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="2000" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="nphNo" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Numărul programului naţional de sănătate (Valoarea codului din nomenclatorul de programe naţionale de sănătate)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="merNo" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Numărul de înregistrare în registrul de consultaţii</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="recommendedByStencilNo" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Parafa medicului specialist care a recomandat reţeta</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="10" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="medicalNotes" minOccurs="0">
								<xs:annotation>
									<xs:documentation xml:lang="ro">Lista biletelor de trimtere emise în perioada de raportare</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="medicalNote" minOccurs="0" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="ro">Bilet de trimitere raportat</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:element name="foreignPerson" type="foreignPersonType" minOccurs="0">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Date de identificare pentru persoană străină (dacă este cazul)</xs:documentation>
														</xs:annotation>
													</xs:element>
													<xs:element name="medicalNoteInvestigation" minOccurs="0" maxOccurs="unbounded">
														<xs:annotation>
															<xs:documentation xml:lang="ro">Investigaţie prescrisă</xs:documentation>
														</xs:annotation>
														<xs:complexType>
															<xs:attribute name="AppID" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:string">
																		<xs:maxLength value="20" />
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="no" type="xs:unsignedInt" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Numărul de ordine al investigaţiei</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="investigation" type="xs:string" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Investigaţia prescrisă (valoarea codului de serviciu din nomenclator)</xs:documentation>
																</xs:annotation>
															</xs:attribute>
															<xs:attribute name="quantity" type="xs:unsignedInt" use="required">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">Cantitatea prescrisă</xs:documentation>
																</xs:annotation>
															</xs:attribute>
														</xs:complexType>
													</xs:element>
												</xs:sequence>
												<xs:attribute name="AppID" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="stencilNo" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Codul de parafă al medicului prescriptor</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="10" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="personPID" type="pidType" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">CNP-ul pacientului</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="patientInsuranceHouse" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Casa de asigurări (codul din nomenclatorul de case de asigurări)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="serialNo" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Numărul biletului de trimitere</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="serialCode" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Seria biletului de trimitere</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="issueDate" type="xs:date" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Data emiterii</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="merNo" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Număr de înregistrare în registrul de consultaţii</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="merDate" type="xs:date" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Data de înregistrare în registrulde consultaţii</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="ticketType" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Tipul biletului de trimitere</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:unsignedInt">
															<xs:enumeration value="1">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">CLINICE</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
															<xs:enumeration value="2">
																<xs:annotation>
																	<xs:documentation xml:lang="ro">DE LABORATOR</xs:documentation>
																</xs:annotation>
															</xs:enumeration>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="diagnostic" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Diagnosticul principal (cod din nomenclatorul de diagnostice)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="specialty" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="ro">Specialitatea medicului prescriptor (cod din nomenclatorul de specialităţi medicale)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:maxLength value="20" />
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="name" type="xs:string" use="optional">
							<xs:annotation>
								<xs:documentation xml:lang="ro">Numele medicului de familie</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="stencil" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">Codul de parafă al medicului</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="10" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="contractNo" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">Numărul contractului în vigoare</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="20" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="fiscalCode" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="ro">Codul fiscal al cabinetului medical sau CNP-ul medicului, dacă are contract individual</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:maxLength value="20" />
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
			<xs:attribute name="AppKey" use="optional">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Cheia de identificare a aplicaţiei de raportare (producator de software 3rd partry)</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="AppID" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Identificatorul unic al raportării</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="20"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="rapDate" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Data raportării</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="startFrom" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Data de inceput a perioadei de raportare</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="endTo" type="xs:date" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Data de sfârşit a perioadei de raprotare</xs:documentation>
				</xs:annotation>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	<xs:simpleType name="pidType">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Tipul de date folosit pentru CNP</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="13" />
			<xs:minLength value="13" />
			<xs:pattern value="[0-9]{13}" />
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="serviceType">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Tipul de date de bază folosit pentru servicii</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="foreignPerson" type="foreignPersonType" minOccurs="0">
				<xs:annotation>
					<xs:documentation xml:lang="ro">Date de identificare pentru persoană străină (dacă este cazul)</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
		<xs:attribute name="AppID" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Identificatorul unic al înregistrării</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="pid" type="pidType" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">CNP pacient (pentru cetăţeni români, se completează cu 0000000000000 pentru cetăţeni străini)</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="code" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Codul serviciului efectuat (valoare codului din nomenclatorul de servicii medicale)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="packCode" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Pachetul de servicii (valoarea codului din nomenclatorul de pachete de servicii medicale)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="date" type="xs:date" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data efectuării serviciului</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="stencil" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Parafa medicului care efectuează serviciul</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="10" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="quantity" type="xs:short" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Cantitatea se servicii efectuate (1)</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="personType" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Tipul pacientului (Valoarea codului din nomenclatorul de tipuri de persoană)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="diagnostic" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Codul diagnosticul pentru serviciile de urgenţă. (Valoarea codului din nomenclatorul ICD10)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="foreignPersonType">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Tipul de date folosit pentru datele cetăţeni străini</xs:documentation>
		</xs:annotation>
		<xs:attribute name="personIdentifier" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Identificatorul unic al persoanei</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="personFirstName" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Prenumele persoanei</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="40" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="personLastName" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Numele de familie al persoanei</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="40" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="birthDate" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data naşterii</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="countryCode" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Ţara de origine (Valoarea codului din nomenclatorul de ţări)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="cardCode" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Codul de card pentru asiguraţii europeni, aşa cum este el înscris pe card</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="40" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="cardExpireDate" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data de expirare a cardului</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="emissiveOrgUnitCode" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Unitatea emitentă, aşa cum este înscrisă pe card</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="30" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="jDocType">
		<xs:annotation>
			<xs:documentation xml:lang="ro">Tipul de date folosit pentru documentele justificative</xs:documentation>
		</xs:annotation>
		<xs:attribute name="code" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Codul tipului de document justificativ</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="docSeries" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Seria documentului justificativ</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="docNo" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Numărul documentului justificativ</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="description" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Descrierea documentului justificativ (text liber)</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="255" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="validFrom" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data de inceput a valabilităţii</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="validTo" type="xs:date" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data de sfârşit a valabilităţii</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="docDate" type="xs:date" use="required">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Data documentului justificativ</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="issuedBy" use="optional">
			<xs:annotation>
				<xs:documentation xml:lang="ro">Unitatea/Instituţia emitentă</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:maxLength value="20" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
</xs:schema>